package prac;

public class test2 {
public static void main(String[] args) {
	int [] arr1= {1,2,3,4,5};
	int [] arr2= {6,7,8,9,10};
	for(int i=0;i<5;i++)
	{
		int tmp=0;
		tmp=arr1[i];
		arr1[i]=arr2[i];
		arr2[i]=tmp;
	}
	for(int i=0;i<5;i++)
	{
	System.out.println(arr1[i]);
	System.out.println(arr2[i]);
	}
}
}
